<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk">
    <body>
        <ui:composition template="/MenuTemplate_wave.xhtml">
            <ui:define name="content_nav">
                   #{msg.content_nav_usermanage}
                </ui:define>
            <ui:define name="content">
                <h:messages globalOnly="true"
                            infoClass="info"  errorClass="alert"
                            fatalClass="colorOrange" /> 
                <h:panelGrid  styleClass="body_content_box" columns="1">
                    <h:form id="userAddForm">
                        <h:panelGrid styleClass="search_border" columns="1" cellpadding="0" cellspacing="0">
                            <h:panelGrid styleClass="search_title" columns="1" cellpadding="0"
                                         cellspacing="2">
                                <h:outputLabel value="#{msg.content_nav_pwdupdate}"  style="vertical-align: middle"/>
                            </h:panelGrid>
                            <h:panelGrid columns="1" style="width: 100%" border="0" cellpadding="3" cellspacing="0">
                                <h:panelGrid columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:panelGrid cellpadding="0" cellspacing="0" border="0" style=" width: 100px">
                                        <h:outputLabel value="#{msg.label_old_pwd}" ></h:outputLabel>
                                    </h:panelGrid>
                                    <h:panelGrid cellpadding="0" cellspacing="0" border="0" style=" width: 100px">
                                        <h:inputSecret id="oldPwd" value="#{userLoginBean.oldPassword}" required="true"/>
                                    </h:panelGrid>
                                    <h:panelGrid cellpadding="0" cellspacing="0" border="0" >
                                        <h:message for="oldPwd"/>
                                    </h:panelGrid>
                                </h:panelGrid>
                                
                                <h:panelGrid columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:panelGrid cellpadding="0" cellspacing="0" border="0" style=" width: 100px">
                                        <h:outputLabel value="#{msg.label_new_pwd}"></h:outputLabel>
                                    </h:panelGrid>
                                    <h:panelGrid cellpadding="0" cellspacing="0" border="0" style=" width: 100px">
                                        <h:inputSecret id="newpwd" value="#{userLoginBean.newPassword}" required="true"/>
                                    </h:panelGrid>
                                    <h:message for="newpwd" />
                                </h:panelGrid>

                                <h:panelGrid columns="3" cellpadding="0" border="0" cellspacing="0">
                                    <h:panelGrid cellpadding="0" cellspacing="0" border="0" style=" width: 100px">
                                        <h:outputLabel value="#{msg.label_new_pwd_cfm}"></h:outputLabel>
                                    </h:panelGrid>
                                    <h:panelGrid cellpadding="0" cellspacing="0" border="0" style=" width: 100px">
                                        <h:inputSecret id="newPwdCfm" value="#{userLoginBean.newPwdConfirm}" required="true"/>
                                    </h:panelGrid>
                                    <h:message for="newPwdCfm" />
                                </h:panelGrid>
                               
                                <h:panelGrid cellspacing="0" cellpadding="0">
                                    <h:commandButton value="#{msg.bt_modify}" action="#{userLoginBean.pwdUpdate}"/>
                                </h:panelGrid>
                            </h:panelGrid>
                        </h:panelGrid>
                    </h:form>
                </h:panelGrid>

            </ui:define>
        </ui:composition>
    </body>
</html>